package com.example.management.mapper;

import com.example.management.pojo.Inbound;
import com.example.management.pojo.Inventory;
import com.example.management.pojo.Outbound;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


@Mapper
public interface InventoryMapper {

    List<Inventory> findAllInventory();

    int inbound(@Param("inbound") Inbound inbound);
    int addInventory(@Param("inbound") Inbound inbound);
    int updateInventory(@Param("inventory") Inventory inventory);
    int deleteInventory(@Param("inventory") Inventory inventory);
    int outbound(@Param("outbound") Outbound outbound);
    int reduceCurrentQuantity(@Param("outbound") Outbound outbound);

    List<Inventory> findByName(String itemName);



}
